<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="" method="post" id="cp-form">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">文件下载</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <label class="">页眉</label>
                            <div class="">
                                <input type="text" name="header" value="{$download_setting.header|default=''}" required lay-verify="required" placeholder="如新贵州-人事考试信息网" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="">页脚</label>
                            <div class="">
                                <input type="text" name="footer" value="{$download_setting.footer|default=''}" required lay-verify="required" placeholder="如新贵州-人事考试信息网" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class=""><strong>水印</strong></label>
                            <div class="">
                                <button type="button" class="layui-btn" id="test2">
                                    <i class="layui-icon">&#xe67c;</i>水印图片
                                </button>
                            </div>
                            <div class="">
                                <table class="layui-table" id="app-photos">
                                    <tr>
                                        <td>
                                            <input type="text" class="layui-input" name="watermark" value="{$download_setting.watermark|default=''}">
                                        </td>
                                        <td>
                                            <img src="{:_get_image_preview_url(isset($download_setting.watermark)?$download_setting.watermark:'')}" alt="" width="150" >
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
